package Builder;

// 指挥者：KFCWaiter(服务员)
class KFCWaiter {
    private MealBuilder mb;
    // 设置套餐建造者
    public void setMealBuilder(MealBuilder mb) {
        this.mb = mb;
    }

    // 指挥建造过程(建造套餐)
    public Meal construct() {
        mb.buildFood();
        mb.buildDrink();
        return mb.getMeal();
    }
}
